package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */

public class DealerBrandDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 品牌与经销商关联ID
     */
        private Integer relationId;
        /**
     * 经销商代码
     */
        private String dealerCode;
        /**
     * 品牌代码
     */
        private String brandCode;
        /**
     * 是否关联
     */
        private Integer isRelated;
        /**
     * 品牌ID
     */
        private Integer brandId;
        /**
     * 数据来源
     */
        private Integer dataSources;
        /**
     * 传值经销商代码
     */
        private String dlrCode;
        /**
     * 是否主品牌
     */
        private Integer primaryBrand;
        /**
     * 所属部门
     */
        private Integer orgId;
            private Boolean isDeleted;
    
    public DealerBrandDTO() {
        super();
    }




    public Integer getRelationId() {
        return relationId;
    }


    public void setRelationId(Integer relationId) {
        this.relationId = relationId;
    }



    public String getDealerCode() {
        return dealerCode;
    }


    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }



    public String getBrandCode() {
        return brandCode;
    }


    public void setBrandCode(String brandCode) {
        this.brandCode = brandCode;
    }



    public Integer getIsRelated() {
        return isRelated;
    }


    public void setIsRelated(Integer isRelated) {
        this.isRelated = isRelated;
    }



    public Integer getBrandId() {
        return brandId;
    }


    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }



    public Integer getDataSources() {
        return dataSources;
    }


    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }



    public String getDlrCode() {
        return dlrCode;
    }


    public void setDlrCode(String dlrCode) {
        this.dlrCode = dlrCode;
    }



    public Integer getPrimaryBrand() {
        return primaryBrand;
    }


    public void setPrimaryBrand(Integer primaryBrand) {
        this.primaryBrand = primaryBrand;
    }



    public Integer getOrgId() {
        return orgId;
    }


    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "DealerBrandDTO{" +
        "relationId=" + relationId +
        ", dealerCode=" + dealerCode +
        ", brandCode=" + brandCode +
        ", isRelated=" + isRelated +
        ", brandId=" + brandId +
        ", dataSources=" + dataSources +
        ", dlrCode=" + dlrCode +
        ", primaryBrand=" + primaryBrand +
        ", orgId=" + orgId +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author quankk
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author quankk
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "relationId");
    }

}
